On the command line execute: php --ini You will get something like: Configuration File (php.ini) Path: /etc/php5/cli Loaded Configuration File: /etc/php5/cli/ ...
The configuration file ( php.ini ) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started.